# -*- coding: utf-8 -*-
<%inherit file="../autohandler"/>
<%include file="toolPanel.myt"/>

<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr><td><div id="add" /></td></tr>
</table>
<table id="tbContent" width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="BoxCenter">
  <tr class="headlineTextCenter"><td height="20" bgcolor="#C5CED9" width="5%">№</td>
    <td height="20" bgcolor="#C5CED9" width="93%">ФИО</td>
    <td height="20" bgcolor="#C5CED9" colspan="2" width="2%">Действия</td>
  </tr>
  <tr id="trNew"><td colspan="8">
      <div id="divNewItem"></div>
      <div id="divNewShowEdit"></div></td>
  </tr>
  <tr bgcolor="#F0F0F0"></tr>

%for obj in c.users:
  <tr bgcolor="#F0F0F0">
    <td height="20" class="bodyText">${ obj.id }</td>
    <td height="20" class="bodyText">
        ${ h.link_to_remote(obj.fio, dict(update="fullview%s" % obj.id, url=h.url_for(action='fullview/%s' % obj.id)))}
    </td>
    <td height="20" class="bodyText">
        <a href="#" onclick="new Ajax.Updater('fullview${ obj.id }', '/users/edit/${ obj.id }', {asynchronous:true, evalScripts:true}); return false;">
            <img border='0' src='/img/b_props.png' title='Редактировать реквизиты пользователя' alt='Редактировать' width='16' height='16'>
        </a>
    </td>
    <td height="20" class="bodyText">
        <a href="/users/delete/${obj.id}" onclick="return confirm('Вы действительно хотите удалить пользователя \'${obj.fio}\'');">
            <img border='0' src='/img/b_delrec.png' title='Удалить пользователя' alt='Удалить' width='16' height='16'>
        </a>
    </td>
  </tr>
  <tr id="trShowEdit${ obj.id }">
      <td colspan="8" id="td${ obj.id }">
          <div id="fullview${ obj.id }" />
  </td></tr>
%endfor
</table>
<%include file="toolPanel.myt"/>

